﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;

namespace Bacteria
{
    /// <summary>
    /// Interaction logic for pageOtherTests.xaml
    /// </summary>
    public partial class pageOtherTests : Page
    {
        MainWindow main;
        public pageOtherTests(MainWindow m)
        {
            main = m;
            InitializeComponent();
        }

        public void CreateControls()
        {

        }
        /*
        public void FindTests()
        {
            switch(main.gGramTest)
            {
                case MainWindow.GramTest.GramNegative:

                    break;

                case MainWindow.GramTest.GramPositive:
                    switch (main.gCellShape)
                    {
                        case  MainWindow.CellShape.Cocci:
                            if (main.gLactose == MainWindow.Fermentation.Acid && main.gDextrose == MainWindow.Fermentation.Acid && main.gSucrose == MainWindow.Fermentation.Acid)
                            {
                                BacteriaList.Add(Bacteria.S_Aureus);
                                BacteriaList.Add(Bacteria.L_Lactis);
                            }
                            else if (main.gLactose == MainWindow.Fermentation.Negative && main.gDextrose == MainWindow.Fermentation.Negative && main.gSucrose == MainWindow.Fermentation.Negative)
                            {
                                BacteriaList.Add(Bacteria.M_Luteus);
                            }
                            else
                                return false;
                            break;

                        case MainWindow.CellShape.Bacilli:
                            BacteriaList.Add(Bacteria.C_Xerosis);
                            BacteriaList.Add(Bacteria.B_Cereus);
                            break;

                        default:
                            return false;
                    }
                    break;
            }

            switch (gramTest)
            {
                case GramTest.GramPositive:
                    switch (shape)
                    {
                        case CellShape.Cocci:
                            if (Lactose == Fermentation.Acid && Dextrose == Fermentation.Acid && Sucrose == Fermentation.Acid)
                            {
                                BacteriaList.Add(Bacteria.S_Aureus);
                                BacteriaList.Add(Bacteria.L_Lactis);
                            }
                            else if (Lactose == Fermentation.Negative && Dextrose == Fermentation.Negative && Sucrose == Fermentation.Negative)
                            {
                                BacteriaList.Add(Bacteria.M_Luteus);
                            }
                            else
                                return false;
                            break;

                        case CellShape.Bacilli:
                            BacteriaList.Add(Bacteria.C_Xerosis);
                            BacteriaList.Add(Bacteria.B_Cereus);
                            break;

                        default:
                            return false;
                    }
                    break;

                case GramTest.GramNegative:
                    switch (shape)
                    {
                        case CellShape.Cocci:
                            return false;

                        case CellShape.Bacilli:
                            if (Lactose == Fermentation.Acid_Gas & Dextrose == Fermentation.Acid_Gas)
                            {
                                BacteriaList.Add(Bacteria.E_Coli);
                                BacteriaList.Add(Bacteria.E_Aerogenes);
                                BacteriaList.Add(Bacteria.K_Pneumoniae);
                            }
                            if (Lactose == Fermentation.Negative & Dextrose == Fermentation.Acid)
                            {
                                BacteriaList.Add(Bacteria.S_Dysenteriae);
                            }
                            if (Lactose == Fermentation.Negative && Dextrose != Fermentation.Negative && Sucrose != Fermentation.Negative)
                            {
                                BacteriaList.Add(Bacteria.P_Vulgaris);
                                BacteriaList.Add(Bacteria.S_Typhimurium);
                            }
                            if (Lactose == Fermentation.Negative && Dextrose == Fermentation.Negative && Sucrose == Fermentation.Negative)
                            {
                                BacteriaList.Add(Bacteria.P_Aeruginosa);
                                BacteriaList.Add(Bacteria.A_Faecalis);
                            }
                            break;

                        default:
                            return false;
                    }
                    break;

                default:
                    return false;
            }
        }*/
    }
}
